roundedrect: Speed up contains_rect and friends
authorMatthias Clasen <mclasen@redhat.com>
Sun, 11 Apr 2021 00:52:50 +0000 (20:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 11 Apr 2021 16:52:30 +0000 (12:52 -0400)
commitf8f2f2944f96a50a2e94641ff728ec501290d13c
tree27fa66aa7ef93c1bdba961c3239340c579c2cc75
parentaaf17fd3d04f00b76b5c21ec5057c4c0b474ef07
roundedrect: Speed up contains_rect and friends

gsk_rounded_rect_contains_rect was calling
gsk_rounded_rect_contains_point, which potentially
checks all four corners, for a total of up to 16
corner/point checks. But there is no need to do
more than 4 such checks to answer the question.
gsk/gskroundedrect.c